home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Tk / win / stubs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-14  |  7.2 KB  |  455 lines

  1. #include <X11/X.h>
  2. #include <X11/Xlib.h>
  3. #include <stdio.h>
  4. #include <tkInt.h>
  5. #include <tkPort.h>
  6.  
  7. void
  8. TkSetRegion(display, gc, r)
  9.     Display* display;
  10.     GC gc;
  11.     TkRegion r;
  12. {
  13. }
  14.  
  15. /*
  16.  * Undocumented Xlib internal function
  17.  */
  18.  
  19. _XInitImageFuncPtrs(XImage *image)
  20. {
  21.     return NULL;
  22. }
  23.  
  24. /*
  25.  * From Xutil.h
  26.  */
  27.  
  28. void
  29. XSetWMClientMachine(display, w, text_prop)
  30.     Display* display;
  31.     Window w;
  32.     XTextProperty* text_prop;
  33. {
  34. }
  35.  
  36. Status
  37. XStringListToTextProperty(list, count, text_prop_return)
  38.     char** list;
  39.     int count;
  40.     XTextProperty* text_prop_return;
  41. {
  42.     return NULL;
  43. }
  44.  
  45. /*
  46.  * From Xlib.h
  47.  */
  48.  
  49. void
  50. XChangeProperty(display, w, property, type, format, mode, data, nelements)
  51.     Display* display;
  52.     Window w;
  53.     Atom property;
  54.     Atom type;
  55.     int format;
  56.     int mode;
  57.     _Xconst unsigned char* data;
  58.     int nelements;
  59. {
  60. }
  61.  
  62. Cursor
  63. XCreateGlyphCursor(display, source_font, mask_font, source_char, mask_char,
  64.     foreground_color, background_color)
  65.     Display* display;
  66.     Font source_font;
  67.     Font mask_font;
  68.     unsigned int source_char;
  69.     unsigned int mask_char;
  70.     XColor* foreground_color;
  71.     XColor* background_color;
  72. {
  73.     return 1;
  74. }
  75.  
  76. XIC
  77. XCreateIC()
  78. {
  79.     return NULL;
  80. }
  81.  
  82. Cursor
  83. XCreatePixmapCursor(display, source, mask, foreground_color,
  84.     background_color, x, y)
  85.     Display* display;
  86.     Pixmap source;
  87.     Pixmap mask;
  88.     XColor* foreground_color;
  89.     XColor* background_color;
  90.     unsigned int x;
  91.     unsigned int y;
  92. {
  93.     return NULL;
  94. }
  95.  
  96. void
  97. XDeleteProperty(display, w, property)
  98.     Display* display;
  99.     Window w;
  100.     Atom property;
  101. {
  102. }
  103.  
  104. void
  105. XDestroyIC(ic)
  106.     XIC ic;
  107. {
  108. }
  109.  
  110. Bool
  111. XFilterEvent(event, window)
  112.     XEvent* event;
  113.     Window window;
  114. {
  115.     return NULL;
  116. }
  117.  
  118. extern void XForceScreenSaver(display, mode)
  119.     Display* display;
  120.     int mode;
  121. {
  122. }
  123.  
  124. void
  125. XFreeCursor(display, cursor)
  126.     Display* display;
  127.     Cursor cursor;
  128. {
  129. }
  130.  
  131. GContext
  132. XGContextFromGC(gc)
  133.     GC gc;
  134. {
  135.     return NULL;
  136. }
  137.  
  138. char *
  139. XGetAtomName(display, atom)
  140.     Display* display;
  141.     Atom atom;
  142. {
  143.     return NULL;
  144. }
  145.  
  146. int
  147. XGetGeometry(display, d, root_return, x_return, y_return, width_return,
  148.     height_return, border_width_return, depth_return)
  149.     Display* display;
  150.     Drawable d;
  151.     Window* root_return;
  152.     int* x_return;
  153.     int* y_return;
  154.     unsigned int* width_return;
  155.     unsigned int* height_return;
  156.     unsigned int* border_width_return;
  157.     unsigned int* depth_return;
  158. {
  159.     return NULL;
  160. }
  161.  
  162. XImage *
  163. XGetImage(display, d, x, y, width, height, plane_mask, format)
  164.     Display* display;
  165.     Drawable d;
  166.     int x;
  167.     int y;
  168.     unsigned int width;
  169.     unsigned int height;
  170.     unsigned long plane_mask;
  171.     int    format;
  172. {
  173.     return NULL;
  174. }
  175.  
  176.  
  177. int
  178. XGetWindowAttributes(display, w, window_attributes_return)
  179.     Display* display;
  180.     Window w;
  181.     XWindowAttributes* window_attributes_return;
  182. {
  183.     return NULL;
  184. }
  185.  
  186. Status
  187. XGetWMColormapWindows(display, w, windows_return, count_return)
  188.     Display* display;
  189.     Window w;
  190.     Window** windows_return;
  191.     int* count_return;
  192. {
  193.     return NULL;
  194. }
  195.  
  196. int
  197. XIconifyWindow(display, w, screen_number)
  198.     Display* display;
  199.     Window w;
  200.     int screen_number;
  201. {
  202.     return NULL;
  203. }
  204.  
  205. XHostAddress *
  206. XListHosts(display, nhosts_return, state_return)
  207.     Display* display;
  208.     int* nhosts_return;
  209.     Bool* state_return;
  210. {
  211.     return NULL;
  212. }
  213.  
  214. int
  215. XLookupColor(display, colormap, color_name, exact_def_return,
  216.     screen_def_return)
  217.     Display* display;
  218.     Colormap colormap;
  219.     _Xconst char* color_name;
  220.     XColor* exact_def_return;
  221.     XColor* screen_def_return;
  222. {
  223.     return NULL;
  224. }
  225.  
  226. void
  227. XNextEvent(display, event_return)
  228.     Display* display;
  229.     XEvent* event_return;
  230. {
  231. }
  232.  
  233. void
  234. XPutBackEvent(display, event)
  235.     Display* display;
  236.     XEvent* event;
  237. {
  238. }
  239.  
  240. void
  241. XQueryColors(display, colormap, defs_in_out, ncolors)
  242.     Display* display;
  243.     Colormap colormap;
  244.     XColor* defs_in_out;
  245.     int ncolors;
  246. {
  247. }
  248.  
  249. int
  250. XQueryTree(display, w, root_return, parent_return, children_return,
  251.     nchildren_return)
  252.     Display* display;
  253.     Window w;
  254.     Window* root_return;
  255.     Window* parent_return;
  256.     Window** children_return;
  257.     unsigned int* nchildren_return;
  258. {
  259.     return NULL;
  260. }
  261.  
  262. void
  263. XRefreshKeyboardMapping(event_map)
  264.     XMappingEvent* event_map;
  265. {
  266. }
  267.  
  268. Window
  269. XRootWindow(display, screen_number)
  270.     Display* display;
  271.     int screen_number;
  272. {
  273.     return NULL;
  274. }
  275.  
  276. void
  277. XSelectInput(display, w, event_mask)
  278.     Display* display;
  279.     Window w;
  280.     long event_mask;
  281. {
  282. }
  283.  
  284. int
  285. XSendEvent(display, w, propagate, event_mask, event_send)
  286.     Display* display;
  287.     Window w;
  288.     Bool propagate;
  289.     long event_mask;
  290.     XEvent* event_send;
  291. {
  292.     return NULL;
  293. }
  294.  
  295. void
  296. XSetCommand(display, w, argv, argc)
  297.     Display* display;
  298.     Window w;
  299.     char** argv;
  300.     int argc;
  301. {
  302. }
  303.  
  304. XErrorHandler
  305. XSetErrorHandler (handler)
  306.     XErrorHandler handler;
  307. {
  308.     return NULL;
  309. }
  310.  
  311. void
  312. XSetIconName(display, w, icon_name)
  313.     Display* display;
  314.     Window w;
  315.     _Xconst char* icon_name;
  316. {
  317. }
  318.  
  319. void
  320. XSetTransientForHint(display, w, prop_window)
  321.     Display* display;
  322.     Window w;
  323.     Window prop_window;
  324. {
  325. }
  326.  
  327. int
  328. XSetWMColormapWindows(display, w, colormap_windows, count)
  329.     Display* display;
  330.     Window w;
  331.     Window* colormap_windows;
  332.     int count;
  333. {
  334.     return 0;
  335. }
  336.  
  337. void
  338. XSetWindowBackground(display, w, background_pixel)
  339.     Display* display;
  340.     Window w;
  341.     unsigned long background_pixel;
  342. {
  343. }
  344.  
  345. void
  346. XSetWindowBackgroundPixmap(display, w, background_pixmap)
  347.     Display* display;
  348.     Window w;
  349.     Pixmap background_pixmap;
  350. {
  351. }
  352.  
  353. void
  354. XSetWindowBorder(display, w, border_pixel)
  355.     Display* display;
  356.     Window w;
  357.     unsigned long border_pixel;
  358. {
  359. }
  360.  
  361. void
  362. XSetWindowBorderPixmap(display, w, border_pixmap)
  363.     Display* display;
  364.     Window w;
  365.     Pixmap border_pixmap;
  366. {
  367. }
  368.  
  369. void
  370. XSetWindowBorderWidth(display, w, width)
  371.     Display* display;
  372.     Window w;
  373.     unsigned int width;
  374. {
  375. }
  376.  
  377. void
  378. XSetWindowColormap(display, w, colormap)
  379.     Display* display;
  380.     Window w;
  381.     Colormap colormap;
  382. {
  383. }
  384.  
  385. Bool
  386. XTranslateCoordinates(display, src_w, dest_w, src_x, src_y, dest_x_return,
  387.     dest_y_return, child_return)
  388.     Display* display;
  389.     Window src_w;
  390.     Window dest_w;
  391.     int src_x;
  392.     int src_y;
  393.     int* dest_x_return;
  394.     int* dest_y_return;
  395.     Window* child_return;
  396. {
  397.     return 0;
  398. }
  399.  
  400. void
  401. XWindowEvent(display, w, event_mask, event_return)
  402.     Display* display;
  403.     Window w;
  404.     long event_mask;
  405.     XEvent* event_return;
  406. {
  407. }
  408.  
  409. int
  410. XWithdrawWindow(display, w, screen_number)
  411.     Display* display;
  412.     Window w;
  413.     int screen_number;
  414. {
  415.     return 0;
  416. }
  417.  
  418. int
  419. XmbLookupString(ic, event, buffer_return, bytes_buffer, keysym_return,
  420.     status_return)
  421.     XIC ic;
  422.     XKeyPressedEvent* event;
  423.     char* buffer_return;
  424.     int bytes_buffer;
  425.     KeySym* keysym_return;
  426.     Status* status_return;
  427. {
  428.     return 0;
  429. }
  430.  
  431. int
  432. XGetWindowProperty(display, w, property, long_offset, long_length, delete,
  433.     req_type, actual_type_return, actual_format_return, nitems_return,
  434.     bytes_after_return, prop_return)
  435.     Display* display;
  436.     Window w;
  437.     Atom property;
  438.     long long_offset;
  439.     long long_length;
  440.     Bool delete;
  441.     Atom req_type;
  442.     Atom* actual_type_return;
  443.     int* actual_format_return;
  444.     unsigned long* nitems_return;
  445.     unsigned long* bytes_after_return;
  446.     unsigned char** prop_return;
  447. {
  448.     *actual_type_return = None;
  449.     *actual_format_return = 0;
  450.     *nitems_return = 0;
  451.     *bytes_after_return = 0;
  452.     *prop_return = NULL;
  453.     return 0;            /* failure */
  454. }
  455.